package zut.wework.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 部门
 * </p>
 *
 * @author 刘铭心
 * @since 2022-03-22
 */
@NoArgsConstructor

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class WxDept implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 部门ID
     */
    private Integer id;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 部门英文名称
     */
    private String name_en;

    /**
     * 父部门ID
     */
    private Integer parentid;

    /**
     * 排序
     */
    private Integer px;

    /**
     * 排序
     */
    private String type_id;

    /**
     * 排序
     */
    private String type;

    @TableField(exist = false)
    private List<WxUser> department_leader;

    public WxDept(Integer id, String name, String name_en, Integer parentid, Integer px, String type_id, String type) {
        this.id = id;
        this.name = name;
        this.name_en = name_en;
        this.parentid = parentid;
        this.px = px;
        this.type_id = type_id;
        this.type = type;
    }
}
